/**
 * qyPoster - v3.4.0 - 2015-05-141
 *
 *
 * Copyright (c) 2015
 * Licensed MIT <>
 */

function test(a, b, c) {
	audioObj = a, pageContents = b;
	for (var d = 0; d < c.length; d++) {
		var e = c[d].num;
		$('<div class = "finger_background page_effect lock"></div>').prependTo($("#page" + e)).attr("id", "finger_background" + e).attr("style", "background-image: url(" + c[d].finger.bgImage.path + ");background-size:cover;width:100%; height: 100%;"), $('<img class = "finger_zw"/>').appendTo($("#finger_background" + e)).attr("id", "finger_zw" + e).attr("src", c[d].finger.zwImage.path), $('<img class = "finger_line" src = "/img/finger_line.png"></img>').appendTo($("#finger_background" + c[d].num)).attr("id", "finger_line" + c[d].num), $('<p class = "finger_info"></p>').appendTo($("#finger_background" + e)).attr("id", "finger_info" + e), $('<div class = "finger_div"></div>').prependTo($("#finger_background" + e)).attr("id", "finger_div" + e), renderPage(qyPoster, e, b), unlock(e)
	}
}
function unlock(a) {
	$("#finger_div" + a).on(tapstart, function() {
		$("#page" + a).find(".u-arrow-bottom").attr("style", "display: none;"), $("#page" + a).find(".edit_wrapper").attr("style", "display: none;"), $("#finger_line" + a).show(), $("#finger_info" + a).html("鎵弿涓�..."), $("#finger_line" + a).stop(!0, !1).animate({
			top: "50%",
			marginTop: "-87px"
		}, 1e3, function() {
			$("#finger_div" + a).unbind(), $("#finger_info" + a).hide().html("鎵弿鎴愬姛").fadeIn(300, function() {
				$("#finger_line" + a).fadeOut(), $("#finger_zw" + a).fadeOut(), $("#finger_div" + a).fadeOut(), $("#finger_info" + a).fadeOut(200, function() {
					setTimeout(function() {
						$("#finger_background" + a).removeClass("lock").addClass("unlock")
					}, 500), $("#finger_background" + a).addClass("noFinger").fadeOut(500, function() {
						if (typeof(autoSta)!='undefined'){
							autoPlayWp(1);
						}
						$("#page" + a).empty(), renderPage(qyPoster, a, pageContents)
					}), $("#audio_btn").css("opacity", 1), 1 == a && playVideo(audioObj)
				})
			})
		})
	})
}
var pageContents, andioObj, hastouch = "ontouchstart" in window ? !0 : !1,
	tapstart = hastouch ? "touchstart" : "mousedown",
	tapend = hastouch ? "touchend" : "mouseup";
$(".finger_div").on(tapend, function() {});